The phrase "to find the exit" means to locate the way out or to discover the way to leave a place or situation.